package com.gutsyzhan.bilibili.dao;

import com.gutsyzhan.bilibili.domain.UserFollowing;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserFollowingDao {
    Integer deleteUserFollowing(@Param("userId") Long userId, @Param("followingId")Long followingId);

    Integer getNormalOrDeleteUserFollowing(@Param("userId")Long userId, @Param("followingId")Long followingId, @Param("flag")Integer flag);

    Integer updateNormalOrDeleteUserFollowing(@Param("userId")Long userId, @Param("followingId")Long followingId, @Param("flag")Integer flag);

    Integer addUserFollowings(UserFollowing userFollowing);

    List<UserFollowing> getUserFollowings(Long userId);

    List<UserFollowing> getUserFans(Long userId);
}
